import request from '@/utils/request'
export const getSystemMonitor = () => request.get('/monitor/metrics/current')
export const getHistoricalMonitor = (startTime, endTime) => request.get('/monitor/metrics/history', {
    params: {
      startTime,
      endTime
    }
  })
export const getHealthMonitor = () => request.get('/monitor/health')
export const getAlertsMonitor = (pageNum = 1, pageSize = 10) => request.get('/monitor/alerts', {
    params: {
      pageNum,
      pageSize
    }
  })

